package p09.p0920;

public class Test {
    public static void main(String[] args) {

        Dog dog = new Dog();
       // dog.eat();
        dog.eat();
        dog.setAge(2);

        Animal cat = new Cat();
        cat.setAge(1);
       // System.out.printf(cat.getAge());
        System.out.println("cat = " + cat.getAge());
        System.out.println("dog = " + dog.getAge());
    }
}
